
# from selenium import webdriver

# driver = webdriver.Chrome()
# driver.get("http://www.baidu.com")
# text = driver.find_element_by_xpath("//input[@id='su']").get_attribute("value")
# print(text)
# text = str(text)
# if text.__contains__("百度一下"):
#     print("包含有百度一下")
# else:
#     print("不包含百度一下")

# numbers = [1, 2, 3, 4]
# numbers.append([5,6,7,8])
# print(len(numbers))
# print(numbers)

# function partial(fn,str1,str2){
#     return function result(str3){
#         return fn(str1,str2,str3)
# }
# }

# import math
# print(math.floor(5.5))

# sort()会改变原来的列表，sorted()不会改变原来的列表，而是生成一个新的列表
# s = [1, 12, 3, 14]
# s.sort()
# print(s)

# ss = [1, 12, 3, 14]
# a = sorted(ss)
# print(ss)
# print(a)
# import json
# import re
#
# s = [1, 12, 3, 14,2,5]
# for i in range(len(s)-1):
#     for j in range(len(s)-i-1):
#         if s[j]>s[j+1]:
#             s[j],s[j+1] = s[j+1],s[j]
# print(s)
#
# # 列表推导式
# print([i for i in range(5)])
#
# # json字符串,通过json.loads()转换成字典
# s = '{"a":1,"b":"2"}'
# d = json.loads(s)
# print(type(d))
# print(d)
# # 字典，通过json.dumps()转换成json字符串
# ss =json.dumps(d)
# print(type(ss))
# print(ss)
#
#
# l = "a12323334y"
# res =re.findall("[0-9]{8}",l)
# print(res)
# res =re.findall("a(.*?)y",l)
# print(res)
#
# res =re.findall("[a-zA-Z]{1}",l)
# print(res)



a = [1,2,3,4,5]
for i in a:
    print(i)
    print("删除前")
    print(a)
    a.remove(i)
    print("删除后")
    print(a)
print(a)















